// @ts-ignore
import {RouteRecordRaw} from "vue-router";

const routes: Readonly<RouteRecordRaw[]> = [
    {
        name: "index",
        path: "/", component: () => import("../components/layout/Index.vue"),
        children: [
            {
                path: "/home",
                component: () => import("../components/views/HelloWorld.vue")
            }, {
                path: "/calendar",
                component: () => import("../components/views/Calendar.vue")
            },{
                path: "/table",
                component: () => import("../components/views/ColorTable.vue")
            },

        ]
    },
    {
        path: "/",
        redirect: "/home"
    }
]

export default routes;